﻿using SyncDemo.Sync.Utils;
using System.Net.Sockets;

namespace SyncCore.Sync
{
    public class Server
    {
        #region fields
        private int _serverPort;
        private MemoryBuffer _buffer;

        private Socket _serverSocket;
        private List<Socket> _clientSockets;

        #endregion

        #region ctors

        public Server(int serverPort)
        {
            _serverPort = serverPort;
        }

        #endregion

        #region methods

        public void Start()
        {
            _serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);

            //_serverSocket.Bind()
            //_serverSocket.send
        }

        #endregion
    }
}
